package com.shujia.mvc1;

import java.io.InputStream;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;

public class TestLogin {
    public static void main(String[] args) {

        //1、输入用户名和密码


        //控制台输入流
        InputStream in = System.in;

        //包装流
        Scanner scanner = new Scanner(in);

        System.out.println("请输入用户名");
        String usernnmae = scanner.next();


        System.out.println("请输入密码");
        String password = scanner.next();

        System.out.println(usernnmae + "\t" + password);



        //构建控制层
        Demo1Controller demo1Controller = new Demo1Controller();

        //调用登录方法
        String login = demo1Controller.login(usernnmae, password);
        System.out.println(login);



    }
}
